/*
 * SonarQube
 * Copyright (C) 2009-2021 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
.duplications-rating {
  position: relative;
  display: inline-flex;
  vertical-align: top;
  justify-content: center;
  align-items: center;
  width: var(--controlHeight);
  height: var(--controlHeight);
  border: 3px solid var(--orange);
  border-radius: var(--controlHeight);
  box-sizing: border-box;
}

.duplications-rating-small {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

.duplications-rating-big {
  width: 40px;
  height: 40px;
  border-width: 3px;
}

.duplications-rating-huge {
  width: 60px;
  height: 60px;
  border-width: 4px;
  border-radius: 30px;
}

.duplications-rating-muted {
  border-color: #bdbdbd !important;
}

.duplications-rating-muted:after {
  background-color: #bdbdbd !important;
}

.duplications-rating:after {
  border-radius: var(--controlHeight);
  content: '';
}

.duplications-rating-A {
  border-color: var(--green);
}

.duplications-rating-A:after {
  display: none;
}

.duplications-rating-B {
  border-color: var(--lightGreen);
}

.duplications-rating-B:after {
  width: 6px;
  height: 6px;
  background-color: var(--lightGreen);
}

.duplications-rating-small.duplications-rating-B:after {
  width: 2px;
  height: 2px;
}

.duplications-rating-big.duplications-rating-B:after {
  width: var(--smallFontSize);
  height: var(--smallFontSize);
}

.duplications-rating-huge.duplications-rating-B:after {
  width: 18px;
  height: 18px;
}

.duplications-rating-C {
  border-color: var(--yellow);
}

.duplications-rating-C:after {
  width: 8px;
  height: 8px;
  background-color: var(--yellow);
}

.duplications-rating-small.duplications-rating-C:after {
  width: 6px;
  height: 6px;
}

.duplications-rating-big.duplications-rating-C:after {
  width: 16px;
  height: 16px;
}

.duplications-rating-huge.duplications-rating-C:after {
  width: var(--controlHeight);
  height: var(--controlHeight);
}

.duplications-rating-D {
  border-color: var(--orange);
}

.duplications-rating-D:after {
  width: var(--smallFontSize);
  height: var(--smallFontSize);
  background-color: var(--orange);
}

.duplications-rating-small.duplications-rating-D:after {
  width: 8px;
  height: 8px;
}

.duplications-rating-big.duplications-rating-D:after {
  width: var(--controlHeight);
  height: var(--controlHeight);
}

.duplications-rating-huge.duplications-rating-D:after {
  width: 36px;
  height: 36px;
}

.duplications-rating-E {
  border-color: var(--red);
}

.duplications-rating-E:after {
  width: 14px;
  height: 14px;
  background-color: var(--red);
}

.duplications-rating-small.duplications-rating-E:after {
  width: 10px;
  height: 10px;
}

.duplications-rating-big.duplications-rating-E:after {
  width: 28px;
  height: 28px;
}

.duplications-rating-huge.duplications-rating-E:after {
  width: 42px;
  height: 42px;
}
